###面向对象


class Person:
    name = ""
    count = 0

    def __init__(self, name, age, height, money):
        self.name = name
        # if age > 100 or age < 0:
        #     self.age = 18
        # else:
        #     self.age = age
        self.age = age
        self.height = height
        self.__money = 100

        @property  # Getter
        def money(self):
            return self.__money  # 只能读，不能写

        @money.setter  # Setter
        def money(self, value):
            if value < 0 or value > 10000:
                self.__money = 100
            else:
                self.__money = value

        # self 相当于this当前对象
        def eat(self):
            print("吃饭的行为==========>")

        def study(self):
            print(f"{self.name}在学习==========>")

        @classmethod
        def class_method(cls):
            print('类方法被调用================>')

        @staticmethod
        def static_method():
            print('静态方法被调用==================>')
